package com.pea.fow.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @author liyinlong
 *com.pea.fow.quartz
 *MyJob.java
 * 2017年5月12日下午2:49:58
 */
public class MyJob extends QuartzJobBean {

	private TestTask testTask;
	/* 
	 * 下午2:49:58
	 *@see org.springframework.scheduling.quartz.QuartzJobBean#executeInternal(org.quartz.JobExecutionContext)
	 */
	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		testTask.myTest();
	}
	/**
	 * @param testTask the testTask to set
	 */
	public void setTestTask(TestTask testTask) {
		this.testTask = testTask;
	}
	

}
